Skip to content

fix: allow process restart after update and detect Homebrew version mismatch - #134

Merged
its-mash merged 4 commits into
mainfrom
fix/updater-restart-acl
Feb 21, 2026
Merged

fix: allow process restart after update and detect Homebrew version mismatch#134
its-mash merged 4 commits into
mainfrom
fix/updater-restart-acl

Conversation

@its-mash

Copy link
Copy Markdown
Member

Summary

  • Adds tauri-plugin-process dependency and process:allow-restart ACL permission so the Tauri updater can relaunch the app after installing an update (fixes "Command plugin:process|restart not allowed by ACL" error on all platforms)
  • Adds get_bundle_version Rust command that reads CFBundleShortVersionString from the on-disk Info.plist on macOS to detect when a Homebrew Cask upgrade has replaced the app bundle while still running
  • Shows a "Restart Required" banner with a one-click restart button when a version mismatch is detected

Test plan

  • Verify in-app update flow completes without ACL error (Download and Install → auto-restart)
  • On macOS: simulate Homebrew upgrade by modifying Info.plist version, open Settings → confirm "Restart Required" banner appears
  • On Windows/Linux: confirm no bundle version banner appears (command returns null)
  • Confirm "Restart Now" button calls relaunch() successfully

…uninstall confirm

- Headers from server definitions are now always applied as default_headers
  on the reqwest::Client regardless of auth strategy (OAuth, PAT, or no-auth)
- If headers contain an Authorization header, OAuth is skipped entirely
- If headers have no Authorization, they ride alongside OAuth tokens
- Add build_default_headers() and build_http_client() helpers
- Remove standalone connect_with_headers() in favor of orthogonal design
- Add 19 unit tests for HttpTransport (requires_oauth, header building,
  connect routing logic, transport_type, description)
- Remove broken confirm() dialog from server uninstall action

Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
…ismatch

Add tauri-plugin-process and `process:allow-restart` ACL permission so
the updater can relaunch the app after installing an update (fixes
"Command plugin:process|restart not allowed by ACL" error on all
platforms).

Add `get_bundle_version` command that reads CFBundleShortVersionString
from the on-disk Info.plist on macOS. When a Homebrew Cask upgrade
replaces the app bundle while it's still running, the frontend detects
the version mismatch and shows a "Restart Required" banner with a
one-click restart button.

Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
@its-mash
its-mash merged commit ecdbaca into main Feb 21, 2026
13 checks passed
@its-mash
its-mash deleted the fix/updater-restart-acl branch February 21, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant